package p1;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;


public class TestAction extends Action{

	ActionForward af;
	public ActionForward execute(ActionForm form,ActionMapping mapping,HttpServletRequest request,HttpServletResponse response)throws Exception
	{
		TestForm tf=(TestForm)form;
		String s1=tf.getUname();
		String s2=tf.getPwd();
		if(s1.equalsIgnoreCase("username")&&s2.equals("password"));
		af=mapping.findForward("success");
		System.out.println("rev13");
		return af;
	}
	
}
